<!DOCTYPE html>

<html>
    
    <head>
        <meta charset=UTF-8 />
        <title>Usage 1 | CoffeeScript</title>
        <script src="http://jashkenas.github.com/coffee-script/extras/coffee-script.js"></script>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
    </head>
    
    <body>
        <h1>Usage 1 | CoffeeScript</h1>
        <script>
            $(function() {
                $.ajax({
                    url:"script.coffee",
                    dataType: "text",
                    success: function(data) {
                        var js = CoffeeScript.compile(data);
                        eval(js);
                    }
                });
            });
        </script>
    </body>
    
</html>